using System;
using System.Collections.Generic;
using System.Text;
using Bino.Common.JsLib;
using Bino.Common.TextLib;

namespace Bino.ExamOnline.Components.UI
{
    public class PageBase : System.Web.UI.Page
    {
        protected string UserName
        {
            get { return Session["UserName"].ToString(); }
        }

        protected int UserID
        {
            get { return StringHelper.SafeInt(Session["UserID"].ToString(),0); }
        }

        public void Alert(string msg)
        {
            JsHelper.Alert(msg);
        }

        public void Alert(string msg, string url)
        {
            JsHelper.Alert(msg, url);
        }

    }
}
